using System;
using System.Collections.Generic;
using System.Text;

namespace Sedna.Core.Controller.Common
{
    public class ScopedActionParam: IActionParam
    {
        private string name;
        private string path;
        
        
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public string Path
        {
            set { path = value; }
        }

        public string GetValue(IExecutionContext executionContext)
        {
            object value = executionContext.GetPropertyValue(path);
            return value != null ? value.ToString() : null;
        }
    }
}
